package com.egg.mall.service.category;

import com.egg.common.mybatis.service.IBaseService;
import com.egg.mall.entity.category.CategoryAttribute;
import com.egg.mall.model.request.AttributeListPut;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Optional;


/**
 * @author east
 */
public interface ICategoryAttributeService extends IBaseService<CategoryAttribute> {


    List<CategoryAttribute> findByCategoryId(Serializable categoryId);

    List<CategoryAttribute> findByCategoryId(Collection<? extends Serializable> categoryId);

    List<CategoryAttribute> find(Optional<Collection<? extends Serializable>> categoryId, Optional<String> type);

    void delByCategoryId(Collection<? extends Serializable> categoryId);

    List<Long> put(String categoryId, AttributeListPut param);


}
